//
//  ZYButton.m
//  SenMo
//
//  Created by ZengYuan on 16/1/29.
//  Copyright © 2016年 ZengYuan. All rights reserved.
//

#import "ZYButton.h"

@implementation ZYButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)layoutSubviews{
//    [super layoutSubviews];
    
    UIImage *streImage = [[UIImage imageNamed:@"y_btn"] resizableImageWithCapInsets:UIEdgeInsetsMake(6, 10, 6, 10)];
    [self setBackgroundImage:streImage forState:UIControlStateNormal];
    
    
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
 }


@end
